#include "junix.h"

using namespace std;
class B;
class A
{
	public:
		A():i(12){}
		friend class B;
	private:
		int i;
};

class B
{
	public:

	void f(const A& a) const
	{
		cout<<a.i<<endl;
	}
};



int main()
{
	A a;
	B b;
	b.f(a);
}
